#ifndef _CUTILS_H_
#define _CUTILS_H_
#include <io.h>

class CUtils
{
public:
	CUtils(void) {};
	~CUtils(void){};
public:
	static bool IsGuest(std::string strVal);
	static void DecToDate(__time64_t iTime, std::string &strDate, std::string &strTime);
	static void DecToDate(__time64_t iTime, std::string &strDate);
	static void DecToTime(__time64_t iTime, std::string &strDate);
	//static void DecToDate(__time64_t iTime, std::string &strDate);
	static bool isDirectory(std::string strDirName);
	static bool CreateDirectorys(TCHAR *pDir);
	static COLORREF StrToColor(const string& str);
	static string ColorToStr(const COLORREF &color);
	static bool GetURLFile(PCTSTR pszURL, PCTSTR pszFile);
	static string trim(string& str);
	static string trimCRLF(string& str);
};

#endif
